<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圣杯布局</title>
</head>
<style>
  .container{
      padding-left:220px;
      padding-right:220px;
  }
  .left{
      float:left;
      width:200px;
      height:400px;
      background:red;
      margin-left:-100%;
      position:relative;
      left:-220px;
  }
  .center{
      float:left;
      width:100%;
      height:500px;
      background: yellow;
  }
  .right {
        float: left;
        width: 200px;
        height: 400px;
        background: blue;
        margin-left: -200px;
        position: relative;
        right: -220px;
  }
</style>
<body>
   <div class="container">
       <div class="center">
           <h2>圣杯布局</h2>
       </div>
       <div class="left">left</div>
       <div class="right">right</div>
   </div>
</body>
</html>